
<template>
  <div class="headerBox">
    <div class="dropdowns-list-box" v-if="messageList.length">
      <div v-for="item in messageList" class="dropdowns-list-box-in">
        <Drop type='Refuse' iconColor='#ffffff' iconBgColor='#87D068' :text='item.content' :time='item.create_time'
              @showDetailList="showDetailList" :optionData="item"/>
      </div>
    </div>
    <Empy type='News' text='你还没有新的消息' v-else/>
    <div class="dropdowns-foots" @click="showDetailList(0)">
      清空通知
    </div>
  </div>
</template>

<script>
// 清空图标

export default {
  props:['messageList'],
  data() {
    return {
      activeName: 'second',
      dropOff: false,
      dialogImgVisible: false
    };
  },
  components: {
  },
  methods: {
    showDetailList(option) {
      this.$emit('getShowNews',option)
    },
    handleClick(tab, event) {
      // console.log(tab, event);
    }
  }
}
</script>

<style>
.headerBox .el-tabs__nav-scroll {
  display: flex;
  justify-content: center;
}

.headerBox  .el-tabs__nav {
  /* width: 320px!important; */
  display: flex !important;
  justify-content: center !important;
}

.headerBox  .el-tabs__header {
  margin-bottom: 0 !important;
}

.dropdowns-dropBox {
  width: 100%;
  /* min-height: 330px;
  max-height: 450px; */
  max-height: 450px;
  overflow: hidden;
  position: relative;
}

.headerBox .dropdowns-list-box {
  max-height: 450px;
  overflow-x: hidden;
  overflow-y: auto;
  -ms-overflow-style: none;
  overflow: '-moz-scrollbars-none';
  scrollbar-width: none; /*  火狐   */
  position: relative;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.headerBox .dropdowns-list-box::-webkit-scrollbar {
  display: none; /*  Chrome  */
  width: 0 !important; /*  Chrome  */
}

.headerBox .dropdowns-list-box-in:nth-last-child(1) .drop {
  border-bottom: transparent;
}

.headerBox .dropdowns-dropBox-scroll {
  width: 300px;
  /* height: 328px; */

}

.headerBox .happy-scroll-container {
  width: 300px !important;
}

.happy-scroll-container .happy-scroll-content {
  /* padding-bottom: 38px !important; */
  box-sizing: border-box !important;
  width: 300px !important;
}

.headerBox .happy-scroll-container {
  height: 290px !important;
}

.headerBox .dropdowns-more {
  width: 100%;
  height: 30px;
  color: #2D8CF0;
  font-size: 14px;
  text-align: center;
  line-height: 30px;

}

.headerBox .dropdowns-foots {
  width: 100%;
  height: 38px;
  background: #f7f7f7;
  font-size: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #515A6E;
  border-top: 1px solid #dcdfe6;
  position: absolute;
  bottom: -2px;
  left: 0;
}

.headerBox .dropdowns-foots-iconsClear {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  color: #515A6E;
  fill: currentColor;
}

.headerBox .dropdowns-foots:hover {
  /* color: #2AB4FB!important; */
  background: #E8F6FD;
}

.headerBox .disableds {
  pointer-events: none;
}
</style>
